﻿using Bogus;
using DataAccess.Models;

namespace DataAccess.Api
{
	public static class DataGenerator
	{
		public static List<Blog> GenerateBlogs(int count)
		{
			return new Faker<Blog>()
				.RuleFor(p => p.Url, f => f.Internet.Url())
				.RuleFor(p => p.Rating, f => f.Random.Number(1, 5))
				.Generate(count);
		}
	}
}
